package arr;

import java.util.Random;

public class arr1 {
    public static void main(String[] args) {

        //生成数组
        int[] arr=new int[15];

        for(int i = 0; i <15; i++) {
            arr[i]=i+1;
        }

        //打乱数组
        Random r=new Random();
        for(int i=0;i<15;i++){
            int num=r.nextInt(15);
            int tmp=arr[i];
            arr[i]=arr[num];
            arr[num]=tmp;
        }
        for (int i = 0; i < 15; i++) {
            System.out.print(arr[i]+" ");
        }
    }

}
